//
//  FavoriteCell.m
//  Product_NEWS
//
//  Created by dllo on 16/1/9.
//  Copyright © 2016年 FCH. All rights reserved.
//

#import "FavoriteCell.h"

@interface FavoriteCell ()

@end


@implementation FavoriteCell

-(void)dealloc{
    [_name retain];
    [_title release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.title];
        [self.contentView addSubview:self.name];
    }
    return self;
}
- (UILabel *)name {
    if (!_name) {
        self.name = [[[UILabel alloc] initWithFrame:CGRectMake(5 * SCREEN_WIDTH, 7 * SCREEN_HEIGHT, 80 * SCREEN_WIDTH, 30* SCREEN_HEIGHT)] autorelease];
        _name.font = [UIFont systemFontOfSize:16*SCREEN_WIDTH];
    }
    return [[_name retain] autorelease];
}
- (UILabel *)title {
    if (!_title) {
        self.title = [[[UILabel alloc] initWithFrame:CGRectMake(75 * SCREEN_WIDTH, 7* SCREEN_HEIGHT, 305 * SCREEN_WIDTH , 30* SCREEN_HEIGHT)] autorelease];
        _title.font = [UIFont systemFontOfSize:16*SCREEN_WIDTH];
    }
    return [[_title retain] autorelease];
}





@end
